<template>
  <div class="technicItem">
    <div class="left">
      <div class="title van-multi-ellipsis--l2">
        {{ info.title }}
      </div>
      <div class="other">
        <div class="o1">{{ info.updated_at | formatTime }}</div>
        <div class="o2 iconfont">&#xe644;</div>
        <div class="o3">{{ info.read }}</div>
        <div class="o4 iconfont">&#xe638;</div>
        <div class="o5">{{ info.star }}</div>
      </div>
    </div>
    <img :src="$baseUrl + info.cover" alt="" class="right" v-if="info.cover" />
  </div>
</template>

<script>
export default {
  props: ['info'],
  data () {
    return {}
  }
}
</script>

<style lang="less" scoped>
.technicItem {
  padding-bottom: 78/2px;

  display: flex;
  justify-content: space-between;
  .left {
    flex: 1;
    display: flex;
    // 改变主轴方向
    flex-direction: column;
    // 在主轴方向两头对齐
    justify-content: space-between;
    .title {
      font-size: 16px;
      font-family: PingFangSC, PingFangSC-Medium;
      font-weight: 500;
      text-align: left;
      color: #181a39;
      line-height: 22px;
      letter-spacing: 0px;
    }
  }
  .other {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #c0c0c8;
    .o1 {
      flex: 1;
    }
  }
  .right {
    width: 133px;
    height: 75px;
    object-fit: cover;
    padding-left: 10px;
  }
}
</style>
